package com.woniuxy.mapper;

import com.woniuxy.pojo.Role;
import com.woniuxy.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    public List<Role> selectRolesByUidWithStep(@Param("uid") int uid);
    //查询所有的角色
    public List<Role> selectAllRoles();
    //通过用户id查找该用户所拥有的角色
    public List<Role> selectRolesByUid(@Param("uid") int uid);
    //分页查询
    public List<Role> selectRolesByRole(Role condition);
    public void deleteRolePermission(@Param("rid") Integer rid);
    public void insertRolePermission(@Param("rid") Integer rid,@Param("perid") Integer perid);
}
